/*
 * JVM_Acc.c
 *
 *  Created on: 01.03.2011
 *      Author: Tavin
 */

#include <stdint.h>


#include "JVM_StatusCodes.h"
#include "JVM_Opcode.h"

#include "acc.h"

/****************************************************************************************/
/*																						*/
/*	Function : JVM_Acc_getAxis								Author : OG					*/
/*																						*/
/*	Description : 								   										*/
/*																						*/
/*	Version : 1.0					Date :2011.3.1			Status : Working   			*/
/*																						*/
/****************************************************************************************/
uint16_t JVM_Acc_getAxis()
{
	uint8_t axis;
	int32_t value;

	axis=JVM_StackFrame_popIntValue(JVM_Opcode_getActiveStackFrame());
	value=ACC_getAxisData(axis);

	JVM_Opcode_pushIntValue(value);
	return(STCD_OK);
}
